import App from './App'
import store from './store'
import {createPinia} from 'pinia'
import './static/iconfont/iconfont.css'

const pinia = createPinia()
uni.$showMsg = function(title='数据获取失败！',duration=1500){//封装弹窗函数
uni.showToast({
  title,
  duration,
  icon:'none'
})
}

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(store).use(pinia)
  return {
    app
  }
}
// #endif